]> dgit.raspbian.org Git - gnome-shell.git/commit
closeDialog: Fix dialog size when using geometry scaling
authorJonas Dreßler <verdre@v0yd.nl>
Tue, 15 Oct 2019 14:20:09 +0000 (16:20 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Mon, 28 Oct 2019 17:30:50 +0000 (17:30 +0000)
commitb6e57a5ae8e3871161e2bdcc44e46af1cc56b2f7
treea6db91ac332c9cc5d64f476df1e82b9340a1f8e8
parentb6d47c18c360799a04954dc21fa40055779fe340
closeDialog: Fix dialog size when using geometry scaling

The close dialog is added as a child to MetaWindowActor, and, in Wayland
sessions, since commit [1] MetaWindowActor applies a transformation
matrix which scales all it's children using the geometry scale factor.
Now because the dialog actor is not a window (i.e. a MetaSurfaceActor),
but a subclass of StWidget, the scale factor is also applied to the
properties of the dialog by StThemeNode, so we end up applying the
geometry scale twice to the close dialog.

Fix this by applying the inverted scale to the dialog, which leaves the
scaling only to MetaWindowActor. This means we also can't apply a pivot
point other than 0 to the dialog actor, so apply the 0.5-pivot point to
the `_dialog` child of the Dialog class (the actual visible dialog box)
and also perform scaling animations on this child.

[1] https://gitlab.gnome.org/GNOME/mutter/commit/fb9e8768

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/783
js/ui/closeDialog.js